package Day30;
import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        while (in.hasNextInt()) {

            int n = in.nextInt();



        }

    }

    public static void main0 (String[] args) {

        char[] words = new char[127];
        for (int i = 'A'; i <= 'Z'; i++) {
            words[i] = (char)i;
        }

        Scanner in = new Scanner(System.in);

        while (in.hasNextLine()) {

            String s = in.nextLine();
            char[] arr = s.toCharArray();
            StringBuilder stringBuilder = new StringBuilder();

            for (int i = 0; i < arr.length; i++) {

                if (arr[i] != ' ') {

                    int cur = arr[i] - 5;
                    if (cur < 'A') {
                        cur = 'Z' - ('A' - cur) + 1;
                    }

                    arr[i] = words[cur];
                }

                stringBuilder.append(arr[i]);
            }

            System.out.println(stringBuilder);

        }

    }

}